package com.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.controller.Action;


public class IndexAction implements Action {

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
	
		HttpSession session = request.getSession();
		
		if(session.getAttribute("memId")==null){
			return "/view/loginForm.jsp";
		}
		
		return "/view/index.jsp";
	}

}
